import http from '../util/request.js'
export default{
    add:(obj)=>{
        return http({
            url:'/api/adoptBooking',
            method:'post',
            data:obj,
            headers: {
                //定义将数据以json的形式传入后台(java)
                'Content-Type': 'application/json'
            }
        });
    },
    edit:(obj)=>{
        return http({
            url:'/api/adoptBooking',
            method:'put',
            data:obj,
            headers: {
                //定义将数据以json的形式传入后台(java)
                'Content-Type': 'application/json'
            }
        });
    },
    del:(id)=>{
        return http({
            url:'/api/adoptBooking/'+id,
            method:'delete'
        });
    },
    page:(obj)=>{
        return http({
            url:'/api/adoptBooking/page',
            method:'get',
            //表单请求参数
            params:obj
        });
    },
    all:(obj)=>{
        return http({
            url:'/api/adoptBooking/all',
            method:'get',
            //表单请求参数
            params:obj
        });
    }
}